﻿@model LayuiDemo.demo.ViewModels.FooVMs.FooVM
@inject IStringLocalizer<Program> Localizer;

<wt:form vm="@Model">
    <wt:row items-per-row="ItemsPerRowEnum.Two">
        <wt:textbox field="Entity.Age" placeholder="￥"/>
        <wt:combobox field="Entity.DepartType" enable-search="true"/>
        <wt:combobox field="Entity.IsValid" />
        <wt:textbox field="Entity.Name" search-url="https://www.baidu.com/s"/>
        <wt:textbox field="Entity.Remark" auto-complete="true"/>
    </wt:row>
    <wt:textarea field="ChartString" />
    <wt:row align="AlignEnum.Right">
        <wt:submitbutton />
        <wt:closebutton />
    </wt:row>
</wt:form>
<div class="tableSelect layui-anim layui-anim-upbit">hgello</div>
<div id="crt" style="height:400px;"></div>

<script>
      layui.echarts.init(document.getElementById('crt')).setOption(@Html.Raw(Model.ChartString));


    $(document).ready(() => {
        layui.numberInput.init('#FooVM_Entity_Age', { precision: 2 });

    });

</script>
